/**
 * 
 */
package com.iapcursos.portal.procefet.modelo.beans.entitys;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Gleison
 *
 */
@Entity
@Table(name = "ENDERECOS")
public class Endereco implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4985361394719941371L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	private String numero;
	private String cep;
	private String complemento;
	@ManyToOne(cascade = CascadeType.PERSIST)
	@JoinColumn(name = "ID_RUA")
	private Logradouro rua;
	/**
	 * 
	 */
	public Endereco() {
		
	}
	/**
	 * @return the numero
	 */
	public String getNumero() {
		return numero;
	}
	/**
	 * @param numero the numero to set
	 */
	public void setNumero(String numero) {
		this.numero = numero;
	}
	/**
	 * @return the cep
	 */
	public String getCep() {
		return cep;
	}
	/**
	 * @param cep the cep to set
	 */
	public void setCep(String cep) {
		this.cep = cep;
	}
	/**
	 * @return the complemento
	 */
	public String getComplemento() {
		return complemento;
	}
	/**
	 * @param complemento the complemento to set
	 */
	public void setComplemento(String complemento) {
		this.complemento = complemento;
	}
	/**
	 * @return the rua
	 */
	public Logradouro getRua() {
		return rua;
	}
	/**
	 * @param rua the rua to set
	 */
	public void setRua(Logradouro rua) {
		this.rua = rua;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

}
